import {Http} from '@/utils/http.js';
class Topic {
	constructor(page,topicClassifyId,canRefresh) {
		this.page = page;
		this.topicClassifyId = topicClassifyId;
		this.canRefresh = canRefresh
	}
	static async getTopicClassify(param){
		return await Http.request({
			url: "topicOrFunClassify/topicClassify",
			data: param,
			method: "POST",
			header: {
			      'content-type': 'application/x-www-form-urlencoded'
			}
		})
	}
	
	static async getTopicClassifyData(){
		return await Http.request({
			url: "topicOrFunClassify/topicClassifyData",
		})
	}
	
	static async getTopicList(param){
		return await Http.request({
			url: "topicOrFunClassify/topicClassifyList",
			data: param,
			method: "GET",
			header: {
			      'content-type': 'application/x-www-form-urlencoded'
			}
		})
	}
	
	static async getTopicDetaile(param){
		return await Http.request({
			url: "topicShare/findTopicShareDetail",
			data: param,
			method: "Post",
			header: {
			      'content-type': 'application/x-www-form-urlencoded'
			}
		})
	}
	
	static async findTopicList(param){
		return await Http.request({
			url: "topicShare/findTopicList",
			data: param,
			method: "Post",
			header: {
			      'content-type': 'application/x-www-form-urlencoded'
			}
		})
	}
	
	static async addShare(param){
		return await Http.request({
			url: "topicShare/addShare",
			data: param,
			method: "Post",
			header: {
			      'content-type': 'application/x-www-form-urlencoded'
			}
		})
	}
	
	static async searchTopicList(param){
		return await Http.request({
			url: "topicShare/searchTopicList",
			data: param,
			method: "Post",
			header: {
			      'content-type': 'application/x-www-form-urlencoded'
			}
		})
	}
}
export {
	Topic
}